package com.net.library.interfaces;

/**
 * Created by ** on 2018/8/15.
 * 数据获取的回调监听
 * 所以的对象均继承 IRequstCode
 */
public interface RequestListener<T> {

    public void onResquestSuccess(T result); //数据获取成功的回调
    public void onResquestError(int requestCode, int errorCode, String message); //数据获取失败的回调
    public void onReResquest();//重新请求数据

}
